{template '_header'}
<link rel="stylesheet" type="text/css" href="../addons/ewei_shopv2/plugin/qa/static/css/common.css?v=2016063000">
<div class='fui-page  fui-page-current'>
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" onclick='location.back()'></a>
        </div>
        <div class="title">{php echo m('plugin')->getName('qa')}</div>
        <div class="fui-header-right">
            <a class="icon icon-home external" href="{php echo mobileUrl('qa')}"></a>
        </div>
    </div>
    <div class='fui-content'>
        {if count($category)>0}
            <div class="fui-cell-group qa-title">
                <div class="fui-cell">
                    <div class="fui-cell-text">全部分类</div>
                </div>
            </div>
            <div class="fui-icon-group col-4 noborder">
                {loop $category $item}
                    <a class="fui-icon-col external" href="{php echo mobileUrl('qa/question', array('cate'=>$item['id']))}">
                        <div class="icon">
                            <img src="{php echo tomedia($item['thumb'])}"/>
                        </div>
                        <div class="text">{$item['name']}</div>
                    </a>
                {/loop}
            </div>
        {/if}
    </div>
</div>
{template '_footer'}